Skip to main content

Get device model identifier (device.type)

Declaration​

type = device.type()

Returns​

  • type
    String. Device model identifier, e.g. "iPhone3,1" or "iPad13,1"

Description​

Get the device type
This function can be used in XUI

Example​

if device.type() == "iPhone3,1" then
-- iPhone 4
end